package net.lahuobao.export.service.stream;

import java.io.IOException;
import java.io.Writer;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Service;

import net.lahuobao.export.service.comm.IStreamGen;

public interface ITxtGen {
	
	
	
	/**
	 * 直接txt文件的方式
	 * @param writer 字符输出流
	 * @param response
	 */
	public <T>boolean createStream(Writer writer, HttpServletResponse response, List<T> dataList, int limit, int index) throws IOException, InstantiationException, IllegalAccessException ;
}
